// TS
interface dataSourceType {
  [propName: string]: any;
}
const optionBar:dataSourceType = {
  // title: {
  //   text: 'Rainfall vs Evaporation',
  //   subtext: 'Fake Data'
  // },
  grid: {
    left: 24,
    right: 10,
    containLabel: true
  },
  tooltip: {
    trigger: 'axis'
  },
  legend: {
    data: [],
    left: 'center',
    //icon: 'circle',
   // bottom: 0,
  },
  toolbox: {
    show: true,
    feature: {
      // dataView: { show: true, readOnly: false },
      // magicType: { show: true, type: ['line', 'bar'] },
      // restore: { show: true },
      //saveAsImage: { show: true }
    }
  },
  calculable: true,
  xAxis: [
    {
      type: 'category',
      "axisTick": {
        "alignWithLabel": true
      },
      offset:1,
      boundaryGap:true,
      // prettier-ignore
      data: [] as (string | number)[]
    }
  ],
  yAxis: [
    {
      type: 'value'
    }
  ],
  series: []
};

export {optionBar}